package wisp.game;

//JFC
import java.awt.*;
import java.awt.Graphics2D;
import java.awt.image.*;
//GTGE
import com.golden.gamedev.*;
import com.golden.gamedev.object.*;
import com.golden.gamedev.engine.BaseLoader;
import com.golden.gamedev.object.sprite.VolatileSprite;

public class InfoMessageSprite extends ParticleSprite {

	private Timer duration;
	
	public InfoMessageSprite(BufferedImage[] images, double x, double y, int timeduration){
		super(images, x, y, 0, 0.1);
		
		duration = new Timer(timeduration);
	}
	
	public void update(long elapsedTime){
		if(duration.action(elapsedTime)){
			setActive(false);
		}
		
		super.update(elapsedTime);
	}

}
